package org.com.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.com.pojo.UserBalance;

import java.math.BigDecimal;
import java.util.Date;

/**
* @author 86134
* @description 针对表【user_balance】的数据库操作Service
* @createDate 2025-03-04 19:34:22
*/
public interface UserBalanceService extends IService<UserBalance> {
    // 获取用户余额
    BigDecimal getUserBalance(Integer userId);
    
    // 初始化用户余额
    boolean initUserBalance(Integer userId);

    int updateBalance(Long balanceId, BigDecimal balance, Date updatedAt);
}
